{include file="common/mate"}
<body>
<!-- 头部 -->
{include file="common/top"}
<!-- /头部 -->

<div class="main-container container-fluid">
    <div class="page-container">
        <!-- Page Sidebar -->
        {include file="common/left"}
        <!-- Page Sidebar Header-->
        <!-- /Page Sidebar -->
        <!-- Page Content -->
        <div class="page-content">
            <!-- Page Breadcrumb -->
            <div class="page-breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <a href="{:url('index/index')}">系统</a>
                    </li>
                    <li>
                        <a href="{:url('brand/lst')}">文章管理</a>
                    </li>
                    <li class="active">修改文章</li>
                </ul>
            </div>
            <!-- /Page Breadcrumb -->

            <!-- Page Body -->
            <div class="page-body">

                <div class="row">
                    <div class="col-lg-12 col-sm-12 col-xs-12">
                        <div class="widget">
                            <div class="widget-header bordered-bottom bordered-blue">
                                <span class="widget-caption">修改文章</span>
                            </div>
                            <div class="widget-body">
                                <div id="horizontal-form">
                                    <form class="form-horizontal" role="form" action="" method="post" enctype="multipart/form-data">
                                        <input type="hidden" name="id" value="{$arts.id}">
                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">所属栏目</label>
                                            <div class="col-sm-6">
                                                <select name="cate_id" >


                                                    {volist name="cateRes" id="vo"}
                                                        <option value="{$arts.cate_id}" {if condition="$arts['cate_id'] eq $vo['id']"} selected="selected"{/if} >|<?php echo str_repeat('-',$vo['level']*4)?>{$vo.cate_name}</option>
                                                    {/volist}
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">标题</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="brand_name" placeholder="" value="{$arts.title}" name="title" required="" type="text">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>
                                        <div class="form-group">
                                            <label for="group_id" class="col-sm-2 control-label no-padding-right">置顶</label>
                                            <div class="col-sm-6">

                                                <div class="radio" style="float: left;padding-right: 10px;">
                                                    <label><input name="show_top" value="1" {if condition="$arts['show_top'] eq 1"} checked="checked"{/if} type="radio"><span class="text">是</span></label></div>
                                                <div class="radio" style="float: left">
                                                    <label><input {if condition="$arts['show_top'] eq 0"} checked="checked"{/if} class="inverted" name="show_top" value="0" type="radio"><span class="text">否</span></label></div>

                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">关键词</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="brand_url" placeholder="" value="{$arts.keywords}" name="keywords"  type="text">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">描述</label>
                                            <div class="col-sm-6">
                                                <input class="form-control"  placeholder="" name="desc" value="{$arts.desc}" type="text">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">作者</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="brand_url" placeholder="" value="{$arts.author}" name="author"  type="text">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">email</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="brand_url" placeholder="" value="{$arts.email}" name="email"  type="text">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">外链</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="brand_url" placeholder="" value="{$arts.link_url}" name="link_url"  type="text">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">缩略图</label>
                                            <div class="col-sm-6">

                                                <input type="file"  name="thumb"/>
                                                {if condition="$arts['thumb'] neq ''"}
                                                    <img src="__uploads__/{$arts.thumb}" alt="" height="30">
                                                {else/}
                                                    暂无缩略图
                                                {/if}
                                            </div>
                                        </div>
                                        <div class="form-group" >
                                            <label  for="username"  class="col-sm-2 control-label no-padding-right">内容</label>
                                            <div class="col-sm-6">

                                                <textarea id="content"  name="content" >{$arts.content}</textarea>
                                            </div>
                                        </div>


                                        <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <button type="submit" class="btn btn-default">保存信息</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <!-- /Page Body -->
        </div>
        <!-- /Page Content -->
    </div>
</div>
{include file="common/js"}
<script type="text/javascript">
    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    UE.getEditor('content',{initialFrameWidth:null,initialFrameHeight:400,});
</script>

</body></html>